import mysql from 'mysql'
//设置数据库连接属性
const db = mysql.createConnection({
	host: '192.168.1.102',
	user: 'root',
	password: 'ca1le1',
	port: '3306',
	database: 'frm'
})

//连接数据库
db.connect(err => {
	if (err) throw err
	console.log('连接成功')
})

export default db;